import java.util.Observable;


public class SimpleObservable extends Observable {
    
    private int data;
    
    public int getData(){
        return data;
    }
    
    public void setData(int data){
        
        if(this.data != data){
            this.data = data;
            setChanged();
            notifyObservers();
        }
        
    }
}
